<?php /* Smarty version Smarty-3.1.8, created on 2012-06-14 08:38:04
         compiled from "../includes/interface/templates\contratRechercher.tpl" */ ?>
<?php /*%%SmartyHeaderCode:142074fd8ad45daf1a9-43458235%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '82d65d12fe1ebbe7cc715cca398b82a015064959' => 
    array (
      0 => '../includes/interface/templates\\contratRechercher.tpl',
      1 => 1339663068,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '142074fd8ad45daf1a9-43458235',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fd8ad45ed8779_25290792',
  'variables' => 
  array (
    'type' => 0,
    'listeContrats' => 0,
    'record' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fd8ad45ed8779_25290792')) {function content_4fd8ad45ed8779_25290792($_smarty_tpl) {?><?php if (!is_callable('smarty_function_cycle')) include 'C:\\wamp\\www\\trunk\\includes\\interface\\smarty\\libs\\plugins\\function.cycle.php';
?><!-- TEMPLATE CONTRAT RECHERCHER -->

<section id="content">

    <!-- Tableau obligatoire ! Structure du calendrier ! -->
    <table class="ds_box" cellpadding="0" cellspacing="0" id="ds_conclass" style="display: none;">
        <tr>
            <td id="ds_calclass"></td>
        </tr>
    </table>

    <!-- -->

    <h1 class="article"><?php echo $_smarty_tpl->getConfigVariable('CONTRAT_RECHERCHER');?>
</h1>

    <form class="article buttons" name="ContratRechercher" method="post" action="?action=rechercherContrat">
        
        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('ANIMAL_NO');?>
</label>
            <input type="text" name="animal_id" />
        </fieldset>
        
        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('PERSONNE_NO');?>
</label>
            <input type="text" name="personne_id" /><br/>
        </fieldset>
        
        <fieldset>
            <label><?php echo $_smarty_tpl->getConfigVariable('TYPE_CONTRAT');?>
</label>
            <select name="type">
                <option value=""></option>
                <option value="pension"><?php echo $_smarty_tpl->getConfigVariable('PENSION');?>
</option>
                <option value="adoptionprovisoire"><?php echo $_smarty_tpl->getConfigVariable('ADOPTION_PROV');?>
</option>
                <option value="cessionpropriete"><?php echo $_smarty_tpl->getConfigVariable('CESSION_PROP');?>
</option>
                <option value="placement"><?php echo $_smarty_tpl->getConfigVariable('PLACEMENT');?>
</option>
                <option value="restitution"><?php echo $_smarty_tpl->getConfigVariable('RESTITUTION');?>
</option>
            </select>
        </fieldset>
            
        
        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('LIEU');?>
</label>
            <input type="text" name="lieu" />
        </fieldset>    
        
        <fieldset class="form-text date">
            <label><?php echo $_smarty_tpl->getConfigVariable('DATE');?>
</label> 
            <p><?php echo $_smarty_tpl->getConfigVariable('ENTRE');?>
<p>
            <input id="correction1" type="text" name="DateContrat" onClick="ds_sh(this);"/> 
            <p><?php echo $_smarty_tpl->getConfigVariable('ET');?>
</p> 
            <input type="text" name="DateContrat" onClick="ds_sh(this);"/>
        </fieldset>
            
        <fieldset class="form-actions">
            <input type="submit" name="Rechercher" value="<?php echo $_smarty_tpl->getConfigVariable('RECHERCHER');?>
">
        </fieldset>

    </form>
        
    <h2 class="article"><?php echo $_smarty_tpl->getConfigVariable('RESULTAT_RECHERCHE');?>
</h2>

    <table id="tableauRecherche" class="article">
        <thead>
            <tr>
                <th width="30px"><?php echo $_smarty_tpl->getConfigVariable('ID');?>
</th>
                <th width="100px">Date</th>
                <th width="100px">Lieu</th>
                <?php if ((isset($_smarty_tpl->tpl_vars['type']->value))&&($_smarty_tpl->tpl_vars['type']->value=='pension')){?>
                <th></th>
                <?php }?>
            </tr> 
        </thead>
        <tbody>
            <?php if (isset($_smarty_tpl->tpl_vars['listeContrats']->value)){?>
                <?php  $_smarty_tpl->tpl_vars['record'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['record']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listeContrats']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['record']->key => $_smarty_tpl->tpl_vars['record']->value){
$_smarty_tpl->tpl_vars['record']->_loop = true;
?>
                    <tr class="<?php echo smarty_function_cycle(array('values'=>"ligne1,ligne2"),$_smarty_tpl);?>
">
                        <td><a href ="?action=afficherPersonne&id=<?php echo $_smarty_tpl->tpl_vars['record']->value->getId();?>
"><?php echo $_smarty_tpl->tpl_vars['record']->value->getId();?>
</a></td>
                        <td><?php echo $_smarty_tpl->tpl_vars['record']->value->getDate();?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['record']->value->getLieu();?>
</td>
                        <?php if ((isset($_smarty_tpl->tpl_vars['type']->value))&&($_smarty_tpl->tpl_vars['type']->value=='pension')){?>
                        <td><a href="http://localhost/trunk/includes/interface/fPDF/ACAcontratAdaption.php" target="blank">PDF</a></td>
                        <?php }?>
                    </tr>

                <?php } ?>    
            <?php }?>     
        </tbody>  
    </table>         
    </section><?php }} ?>